var status = 0;

function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (status == 0 && mode == 0) {
		cm.dispose();
		return;
	}
	if (mode == 1) {
		status++;
	} else {
		status--;
	}
	if (cm.getMapId() == 253000100 || cm.getMapId() == 253000200 || cm.getMapId() == 253000300) {
		cm.dispose();
		cm.openNpc(9310428, "卧虎入场");
	} else {
		cm.dispose();
	}

}
